package com.qfedu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Student implements Serializable {

    private int id;
    private String u_no;
    private String name;
    private String sex;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")// 接收key value 字符串 转化为 Date
    private Date birthday;
    private String cardno;
    private String schoolname;
    private String education;
    private int phone;
    private String email;
    private int qq;
    private int gno;
    private int flag;
    private Date entrytime;

    public Student() {
    }

    public Student(int id, String u_no, String name, String sex, Date birthday, String cardno, String schoolname, String education, int phone, String email, int qq, int gno, int flag, Date entrytime) {
        this.id = id;
        this.u_no = u_no;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.cardno = cardno;
        this.schoolname = schoolname;
        this.education = education;
        this.phone = phone;
        this.email = email;
        this.qq = qq;
        this.gno = gno;
        this.flag = flag;
        this.entrytime = entrytime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getU_no() {
        return u_no;
    }

    public void setU_no(String u_no) {
        this.u_no = u_no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public String getSchoolname() {
        return schoolname;
    }

    public void setSchoolname(String schoolname) {
        this.schoolname = schoolname;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public int getPhone() {
        return phone;
    }

    public void setPhone(int phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getQq() {
        return qq;
    }

    public void setQq(int qq) {
        this.qq = qq;
    }

    public int getGno() {
        return gno;
    }

    public void setGno(int gno) {
        this.gno = gno;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public Date getEntrytime() {
        return entrytime;
    }

    public void setEntrytime(Date entrytime) {
        this.entrytime = entrytime;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", u_no='" + u_no + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", cardno='" + cardno + '\'' +
                ", schoolname='" + schoolname + '\'' +
                ", education='" + education + '\'' +
                ", phone=" + phone +
                ", email='" + email + '\'' +
                ", qq=" + qq +
                ", gno=" + gno +
                ", flag=" + flag +
                ", entrytime=" + entrytime +
                '}';
    }
}
